package com.xiaoshi.utils;

import com.xiaoshi.interfaces.Constants;
import org.reflections.Reflections;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

public class ReflectionsUtils {

    public static Reflections reflections = getReflections();


    /**
     * 默认是找  login的包
     * @return
     */
    private  static Reflections getReflections(){
        return   reflections = new Reflections(Constants.packageUrl.LOGIN_PAACKAGE_URL);
    }


    /**
     * url  是包的路径
     * @param url
     * @return
     */
    public  static Reflections getReflections(String url){
        return   reflections = new Reflections(url);
    }


}